//
//  KeyBoardView.h
//  Keyboard
//
//  Created by  ios－hs on 15/6/3.
//  Copyright (c) 2015年  ios－hs. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^MyBlock)(NSString *result,NSString *changeString);
typedef void(^OkBlock)(NSString *result);
typedef void(^removeKeyBoardViewBlock)(void);

@interface KeyBoardView : UIView

@property (nonatomic,assign) NSInteger index;
@property (nonatomic,assign) NSInteger maxLength;
//已输入有效位数
@property (nonatomic,assign) NSInteger effectiveNum;
@property (nonatomic,copy) MyBlock block;
@property (nonatomic,copy) OkBlock okBlock;
@property (nonatomic,copy) removeKeyBoardViewBlock removeKeyBoardViewBlock;

- (id)initWithFrame:(CGRect)frame defaultString:(NSString *)defaultString;
- (void)reloadResultStringWithString:(NSString *)string;

@end
